package br.com.caelum.util;

import java.sql.Connection;
import java.sql.DriverManager;

public class ConnectionFactory {
	
	public Connection getConnection() {
		
		try {
			//coloquei a linha de comando e resolveu
			Class.forName("com.mysql.jdbc.Driver");
			return DriverManager.getConnection("jdbc:mysql://localhost/fj21", "root", "1234");
		} catch (Exception e) {
			throw new RuntimeException();
		}
		
		
	}

}
